/*banner*/
window.setTimeout("onload_pic()", 0);
function onload_pic(){
	var j;
	for(j=1;j<=10;j++){
		var obj=document.getElementById("swiper-slide_"+j);
		obj.style.background="url(images/banner_"+j+".jpg) center center no-repeat";
	}
}



function open_menu() {
	// body...
	var obj1=document.getElementById("sort_menu");
	var obj2=document.getElementById("sj");
	// obj1.style.display="block";
	// obj1.style.height="300px";
	// obj1.width="100%";
	obj2.style.transform="rotate(0deg)";
}

function close_menu() {
	// body...
	var obj1;
	for(var j=1;j<=5;j++){
		obj1=document.getElementById("li_dg"+j);
		obj1.style.backgroundColor="#C7FFEC";
		obj1.style.color="black";
	}
	var obj2=document.getElementById("sj");
	// obj1.style.display="none";
	// obj2.style.transition="-webkit-transform 0.3s ease-in 0s";
	obj2.style.transform="rotate(90deg)";
}

function display_dgfl(i){

	var li_dg=document.getElementById("li_dg"+i);
	var dgy=document.getElementById("dgy"+i);
	
	for(var j=1;j<=5;j++){
		li_dg=document.getElementById("li_dg"+j);
		li_dg.style.backgroundColor="#C7FFEC";
		li_dg.style.color="black";

		dgy=document.getElementById("dgy"+j);
		dgy.style.display="none";
	}

	dgy=document.getElementById("dgy"+i);
	dgy.style.display="block";
	dgy.style.backgroundColor="#f7f7f7";
	dgy.style.color="#666";
	// dgy.width="820px";

	li_dg=document.getElementById("li_dg"+i);
	li_dg.style.backgroundColor="#f7f7f7";
	li_dg.style.color="#666";

}

function a_hover(a){
	var obj=document.getElementById("li_dg"+a);
		obj.style.backgroundColor="#f7f7f7";
		obj.style.color="#666";
}
/*动画部分*/
 
$(document).ready(function(){
	if(window.pageYOffset>=700&&window.pageYOffset<=1900)
		{
		$(".content .scene_1 .white_box1 .left_pic").addClass("anim_left_pic");
  		$(".content .scene_1 .white_box1 .left_font").addClass("anim_left_font");
  		$(".content .scene_1 .white_box1 .communicate_us a").addClass("anim_communicate_us");
  		$(".content .scene_1 .white_box1 .about_us a").addClass("anim_about_us");
  		$(".content .scene_1 .white_box1 .leduo_pic").addClass("anim_leduo_pic");
  		}
	var i=0;
	$(window).scroll(function(){					
		if(window.pageYOffset>=700&&window.pageYOffset<=1900){
			if(i==1)
			{
			$(".content .scene_1 .white_box1 .left_pic").addClass("anim_left_pic");
  			$(".content .scene_1 .white_box1 .left_font").addClass("anim_left_font");
  			$(".content .scene_1 .white_box1 .communicate_us a").addClass("anim_communicate_us");
  			$(".content .scene_1 .white_box1 .about_us a").addClass("anim_about_us");
  			$(".content .scene_1 .white_box1 .leduo_pic").addClass("anim_leduo_pic");
			 i++;
			}
			else if(i==0)
			{++i;}
			else{
			}
		}					
	});
});

$(document).ready(function(){
	if(window.pageYOffset>=1600&&window.pageYOffset<=3000)
		{
		$(".content .scene_2 .white_box2 .up_font .up_font1").addClass("anim_up_1font");
  		$(".content .scene_2 .white_box2 .up_font .up_font2").addClass("anim_up_2font");
  		$(".content .scene_2 .white_box2 .down_pic").addClass("anim_down_pic");
  		$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_wenxin").addClass("anim_font_wenxin");
  		$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_xiangshou").addClass("anim_font_xiangshou");
  		$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_xingfu").addClass("anim_font_xingfu");
  		$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_qingzhu").addClass("anim_font_qingzhu");
  		}
	var i=0;
	$(window).scroll(function(){					
		if(window.pageYOffset>=1600&&window.pageYOffset<=3000){
			if(i==1)
			{
$(".content .scene_2 .white_box2 .up_font .up_font1").addClass("anim_up_1font");
$(".content .scene_2 .white_box2 .up_font .up_font2").addClass("anim_up_2font");
$(".content .scene_2 .white_box2 .down_pic").addClass("anim_down_pic");
$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_wenxin").addClass("anim_font_wenxin");
$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_xiangshou").addClass("anim_font_xiangshou");
$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_xingfu").addClass("anim_font_xingfu");
$(".content .scene_2 .white_box2 .down_pic .big_fontbox .font_qingzhu").addClass("anim_font_qingzhu");
			 i++;
			}
			else if(i==0)
			{++i;}
			else{
			}
		}					
	});
});

$(document).ready(function(){
	if(window.pageYOffset>=2500&&window.pageYOffset<=3648)
		{
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic1").addClass("anim_dangao1_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic2").addClass("anim_dangao2_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic3").addClass("anim_dangao3_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic4").addClass("anim_dangao4_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic5").addClass("anim_dangao5_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic6").addClass("anim_dangao6_pic");
$(".content .scene_3 .white_box3 .dangao_more p").addClass("anim_dangao_morep");
$(".content .scene_3 .white_box3 .dangao_more a").addClass("anim_dangao_morea");
$(".content .scene_3 .white_box3 .weixinDIY p").addClass("anim_weixinDIY_p");
$(".content .scene_3 .white_box3 .weixinDIY a").addClass("anim_weixinDIY_a");
  		}
	var i=0;
	$(window).scroll(function(){					
		if(window.pageYOffset>=1900&&window.pageYOffset<=3648){
			if(i==1)
			{
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic1").addClass("anim_dangao1_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic2").addClass("anim_dangao2_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic3").addClass("anim_dangao3_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic4").addClass("anim_dangao4_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic5").addClass("anim_dangao5_pic");
$(".content .scene_3 .white_box3 .dangao_pictotal .dangao_pic6").addClass("anim_dangao6_pic");
$(".content .scene_3 .white_box3 .dangao_more p").addClass("anim_dangao_morep");
$(".content .scene_3 .white_box3 .dangao_more a").addClass("anim_dangao_morea");
$(".content .scene_3 .white_box3 .weixinDIY p").addClass("anim_weixinDIY_p");
$(".content .scene_3 .white_box3 .weixinDIY a").addClass("anim_weixinDIY_a");
			 i++;
			}
			else if(i==0)
			{++i;}
			else{
			}
		}					
	});
});
/*动画部分*/